#ifndef __LoginConnGS_H__
#define __LoginConnGS_H__

#include "Network/EssNetworkHeaders.h"
#include <string>

class LoginConnGS : public EssNetwork
{
public:
	LoginConnGS() : mLog("") {};
	
	virtual void onAccept(EssAcceptor* acceptor, EssConnector* connector);
	virtual bool onReceive(EssConnector* connector);
	virtual void onDisconnect(EssConnector* connector);

	virtual void broadcast(const char* buf, int len);
	virtual size_t getConnectorNum() const { return mConnectors.size(); };

	const std::string& getLog() const { return mLog; };
	void appendLog(const char* log) { mLog +=log; };

protected:
	std::string		mLog;
};

#endif //__LoginConnGS_H__